IF EXISTS (SELECT *
           FROM INFORMATION_SCHEMA.VIEWS
           WHERE TABLE_NAME='vOutProdDetail'
           AND TABLE_SCHEMA='dbo'
          )
          DROP VIEW dbo.vOutProdDetail
GO

CREATE VIEW dbo.vOutProdDetail
AS
/*@@*_____________________________________________________________________


_____________________________________________________________________*@@*/

  SELECT
    OutProdDetail.*,
    OutProdPaper.[Date]
  FROM
    OutProdDetail
    
    INNER JOIN dbo.OutProdPaper
		ON OutProdDetail.OutProdPaperId = OutProdPaper.Id



